from dataclasses import dataclass

from common.translate.biz_message import messages


@dataclass(frozen=True)
class ResponseCode:
    code: int
    msg: str


# 定义响应码
# 请求成功 响应码 200
SUCCESS = ResponseCode(200, messages['REQUEST_SUCCESS'])
# 请求失败 响应码 400
ERROR = ResponseCode(400, messages['REQUEST_FAIL'])
